<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struts 2 Application - Welcome</title>
</head>
<body>
	<h3>Welcome To Struts 2!</h3>
	
	<p><a href="<s:url action='hello'/>">Hello World</a></p>
	
	<s:url action="hello" var="helloLink">
	  <s:param name="userName">Bruce Phillips</s:param>
	</s:url>
	<p><a href="${helloLink}">Hello Bruce Phillips</a></p>
	
	<s:form action="hello">
	    <s:textfield name="userName" label="Your name" />
	    <s:submit value="Submit" />
	</s:form>
	
	<s:url action="registerInput" var="registerInputLink" />
	<p><a href="${registerInputLink}">Please register</a> for our prize drawing.</p>
	
	<s:url action="registerInput" var="registerInputLinkZH">
	    <s:param name="request_locale">es</s:param>
	</s:url>
	<p><a href="${registerInputLinkZH}">Por favor, 注册</a> para nuestro sorteo</p>

	<a href="<s:url action="index" namespace="config-browser" />">Launch the configuration browser</a>

	<p><a href="<s:url action='edit'/>">To edit form.</a></p>

	<hr />
	<s:text name="contact" />

</body>
</html>
